/*
	File:		SwarmBot.h
	Author:		Ben Feldmann
	Purpose:	Class to manage game SwarmBot enemies
*/

#pragma once

#include "Enemy.h"
#include "AnimationSystem.h"
class IEntity;
class Player;

class SwarmBot : public Enemy
{
public:
	SwarmBot();
	~SwarmBot();

	void Update(float elapsed);
	void Render();

	bool CheckCollision(IEntity* base);
	void Attack();
	RECT GetRect();

	// Pure virtual method from IListener
	virtual void HandleEvent(Event* thisEvent);

	void SetAnimation(int id[8]);

	int GetMax() {return maxHealth;}

private:
	bool inRange;
	int attackPlace;
	int damage;
	int swarmtime;
	Animation SwarmAnimation[8];
	Player* target;
	int maxHealth;
	int AttackSound;
	int WalkSound;
	int DeathSound;
	float BackAwayTimer;
};
